package com.cloudspace.jindun.model;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by zengxianhua on 17/2/12.
 */

public class ChannelMemberStatus implements Serializable{
    public String id;
    public String name;
    public String department;
    public String departName;
    public String tel;
    public String status;
    public String iconUrl;
    public String remark;
    public String lastActionTime;

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (getClass() != obj.getClass())
            return false;

        ChannelMemberStatus other = (ChannelMemberStatus) obj;
        return TextUtils.equals(id, other.id);
    }

    @Override
    public int hashCode() {
        if (TextUtils.isEmpty(id)){
            return "".hashCode();
        }

        return id.hashCode();
    }
}
